package com.wbl.train.common.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author 王博纶
 * @since 2024-02-15
 * @description 余票信息
 */
@Data
@Accessors(chain = true)
@TableName("daily_train_ticket")
@Schema(name = "DailyTrainTicket 对象", description = "余票信息 实体类")
public class DailyTrainTicketEntity implements Serializable {

    @Schema(description = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "日期")
    private LocalDate date;

    @Schema(description = "车次编号")
    private String trainCode;

    @Schema(description = "出发站")
    private String start;

    @Schema(description = "出发站拼音")
    private String startPinyin;

    @Schema(description = "出发时间")
    private LocalTime startTime;

    @Schema(description = "出发站序|本站是整个车次的第几站")
    private Integer startIndex;

    @Schema(description = "到达站")
    private String end;

    @Schema(description = "到达站拼音")
    private String endPinyin;

    @Schema(description = "到站时间")
    private LocalTime endTime;

    @Schema(description = "到站站序|本站是整个车次的第几站")
    private Integer endIndex;

    @Schema(description = "一等座余票")
    private Integer ydz;

    @Schema(description = "一等座票价")
    private BigDecimal ydzPrice;

    @Schema(description = "二等座余票")
    private Integer edz;

    @Schema(description = "二等座票价")
    private BigDecimal edzPrice;

    @Schema(description = "软卧余票")
    private Integer rw;

    @Schema(description = "软卧票价")
    private BigDecimal rwPrice;

    @Schema(description = "硬卧余票")
    private Integer yw;

    @Schema(description = "硬卧票价")
    private BigDecimal ywPrice;

    @Schema(description = "新增时间")
    private Date createTime;

    @Schema(description = "修改时间")
    private Date updateTime;


}
